const http = uni.$u.http

// post请求，获取菜单
export const factoryCodeSave = (params, config = {}) => http.post('/auth/factory-code/save', params, config)
export const factoryCodeSaveCheck = (params, config = {}) => http.post('/auth/factory-code/savePreCheck', params, config)

// get请求，获取菜单，注意：get请求的配置等，都在第二个参数中，详见前面解释
export const stockList = (data) => http.get('/auth/stock-info/list', data)
export const findFactoreCodeByPuNos = (data) => http.get('/auth/factory-code/findFactoreCodeByPuNos', data)
export const initDataByCangKu = (data) => http.get('/auth/factory-code/initDataByCangKu', data)
export const findCaseCode = (data) => http.get('/auth/factory-code/findCaseCode', data)
export const stockByUserList = (data) => http.get('/auth/stock-info/listByUserId', data)
export const login = (data) => http.get('/auth/user-info/login', data)
export const getFactoryList = (data) => http.get('/auth/factory-code/list', data)
export const orderMainPage = (data) => http.get('/auth/order-main/page', data)
export const orderMainGetSelectList = (data) => http.get('/auth/order-main/getSelectList', data)
export const getGoodsInfoByPuNo = (data) => http.get('/auth/order-detail/getGoodsInfoByPuNo', data)
 
